package com.gopay.common.cps.dao.bank.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.bank.BisBankInterfaceChannelDAO;
import com.gopay.common.domain.bis.BisBankInterfaceChannel;

/**
 * @BisBankInterfaceChannelDAOImpl.java
 * @author wanggang
 * @2014-1-9 上午11:22:06 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("bisBankInterfaceChannelDAO")
public class BisBankInterfaceChannelDAOImpl extends BaseDAOImpl<BisBankInterfaceChannel, String> implements BisBankInterfaceChannelDAO {

    @Override
    public List<BisBankInterfaceChannel> getAllBisBankInterfaceChannel() {
        String hql = "from BisBankInterfaceChannel t where del = :del and enable = :enable order by t.channelCode";
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("del", false);        
        params.put("enable", true);
        return findByHql(hql, params);
    }

}
